<?php
$this->breadcrumbs=array(
	Yii::t('app', 'Купоны')=>array('admin'),
	Yii::t('app', 'Настройка бонусов'),
);
?>
<div class="title">
<h2>Настройка бонусов</h2></div>
<div class="content ">
<form action="<?= $this->createUrl('') ?>" method="post">
    <table width="100%" border="1">


    <?php 
    $i=1;
foreach ($models as $value) {
    $i++;
    ?>
        
          <tr>
    <td><label style="width:400px;" for="pol<?= $i?>"><?= $value->name ?></label></td>
    <td><input style="width:100px; clear: both" id="pol<?= $i?>" value="<?= $value->amount?>" name="val[<?= $value->id?>]" class="medium" type="number" min="0"  /></td>
  </tr>
    
    <?php
}
    ?>
</table>
    <button type="sumbit" class="green big"><span><?= Yii::t('app', 'Сохранить'); ?></span></button>
</form>
</div>